import request from "@/utils/request";

// 查询紫外线灯擦拭记录列表
export function listScrub(query) {
  return request({
    url: "/zp/lightScrub/list",
    method: "get",
    params: query,
  });
}

// 紫外线灯擦拭-未处理数量
export function unScrubNum(query) {
  return request({
    url: "/zp/lightScrub/unScrubNum",
    method: "get",
    params: query,
  });
}

// 查询紫外线灯擦拭记录详细
export function getScrub(id) {
  return request({
    url: "/medical/scrub/" + id,
    method: "get",
  });
}

// 新增紫外线灯擦拭记录
export function addScrub(data) {
  return request({
    url: "/zp/lightScrub",
    method: "post",
    data: data,
  });
}

// 修改紫外线灯擦拭记录
export function updateScrub(data) {
  return request({
    url: "/medical/scrub",
    method: "put",
    data: data,
  });
}

// 删除紫外线灯擦拭记录
export function delScrub(id) {
  return request({
    url: "/medical/scrub/" + id,
    method: "delete",
  });
}
